package com.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "stock_in")
public class StockIn {
    /**
     * 入库详情ID
     */
    @Id
    private Integer siid;

    /**
     * 库存ID
     */
    private Integer sid;

    /**
     * 数量
     */
    private Integer number;

    /**
     * 生产日期
     */
    @Column(name = "produced_date")
    private Date producedDate;

    /**
     * 入库时间
     */
    @Column(name = "in_time")
    private Date inTime;

    /**
     * 操作人
     */
    private String operator;

    /**
     * 单据ID
     */
    private Integer rid;

    public StockIn(Integer sid, Integer number, Date producedDate, Date inTime, String operator, Integer rid) {
        this.sid = sid;
        this.number = number;
        this.producedDate = producedDate;
        this.inTime = inTime;
        this.operator = operator;
        this.rid = rid;
    }
}
